import request from '@/utils/request'
import qs from 'qs'

export function fetchList(query) {
  return request({
    url: '/checklist',
    method: 'get',
    params: query
  })
}

export function fetchListItem(id) {
  return request({
    url: '/checkinfo',
    method: 'get',
    params: { id }
  })
}

export function fetchStatus(check) {
  return request({
    url: '/check',
    method: 'put',
    data: qs.stringify(check)
  })
}
